package com.lcke.system.model;

import com.lcke.common.login.User;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Getter
@Setter
public class SystemUser extends User implements Serializable {
    private static final long serialVersionUID = 5214975836959014217L;
    private String userId;
    private String userName;
    private String userPassword;
    private String permissions;
    private String token;
    private List<SystemUser> roles;


    public List<SystemUser> getRoles() {
        if (null == roles) {
            return new ArrayList<>();
        }
        return roles;
    }
}
